Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for the newer xargs (since Jammy) #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mastier
Copy link
Contributor

@mastier mastier commented Oct 8, 2024

For Jammy and Noble the tool got issue with xargs
xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value
By reading the manual:

  The  options  --max-lines  (-L,  -l), --replace (-I, -i) and --max-args (-n) are mutually exclusive. If some of them are specified at the same time, then xargs will generally use the option specified last on the command line,
  i.e., it will reset the value of the offending option (given before) to its default value.  Additionally, xargs will issue a warning diagnostic on stderr.  The exception to this rule is  that  the  special  max-args  value  1
  ('-n1') is ignored after the --replace option and its aliases -I and -i, because it would not actually conflict.

So the resolution here is just to fix the order of arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant